package com.example.demo1.core;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
public class PageUtils implements Serializable {
    
    private static final long serialVersionUID = 1L;
    private int total;
    private List<?> rows;
    
    public PageUtils(List<?> list,long total) {
        this.rows = list;
        this.total = Integer.parseInt(String.valueOf(total));
    }
    
    public  PageUtils(List<?> list,int total) {
        this.rows = list;
        this.total = total;
    }
}






